﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace S.Transfer.Domain.Migrations
{
    public partial class transfer01 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SheepRescission",
                columns: table => new
                {
                    SheepRescissionId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    ElectronicEarLabel = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SurrenderDate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    RoundType = table.Column<int>(type: "int", nullable: false),
                    TurnOutBuild = table.Column<int>(type: "int", nullable: false),
                    TurnOutHuts = table.Column<int>(type: "int", nullable: false),
                    TurnOuBuildingManagementId = table.Column<int>(type: "int", nullable: false),
                    TurnOuColumnManagementId = table.Column<int>(type: "int", nullable: false),
                    ShiftToBuild = table.Column<int>(type: "int", nullable: false),
                    ShiftToHuts = table.Column<int>(type: "int", nullable: false),
                    ShiftToBuildingManagementId = table.Column<int>(type: "int", nullable: false),
                    ShiftToColumnManagementId = table.Column<int>(type: "int", nullable: false),
                    Variety = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreateDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    UpdName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UpdDate = table.Column<DateTime>(type: "datetime2", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SheepRescission", x => x.SheepRescissionId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SheepRescission");
        }
    }
}
